<?php

class HackerU_Client_Rest
{

	const URL = 'http://localhost/mvc/Examples/XmlAndWebService/WebService/Rest/server.php';
	
	private $xml;
	
	public function __construct($funcName)
	{
			try{
				$this->xml = new SimpleXMLElement(self::URL.'?func='.$funcName, null, true);
				var_dump($this->xml);
			}catch(Exception $e){
				var_dump($e->getMessage());
			}
	}
}

new HackerU_Client_Rest('tests');